/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.template;

/**
 *
 * 模板方法：把不变的行为抽取到超类，去除子类中的重复代码
 * @author caicongyang1
 * @version id: TmplateClientTest, v 0.1 17/5/14 下午8:22 caicongyang1 Exp $$
 */
public class TmplateClientTest {
    public static void main(String[] args) {
        AbstractClass a = new ConcreteClassA();
        a.templateMethod();

        AbstractClass b = new ConcreteClassB();
        b.templateMethod();
    }
}
